package com.yujn.order.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
public class DynamicPerson2 {
    @Value("${dynamic.person.name}")
    private String name;

    @Value("${dynamic.person.sex}")
    private String sex;

    @Value("${dynamic.person.age}")
    private Integer age;
}
